06. Solution: XML

Solution: XML

ND079 JPND C3 L2 A04 XML Exercise Solution

This exercise creates a list of Car objects inside a CarRecords object, so we need one outer element called CarRecords and two inner elements called Car.

<CarRecords>
    <Car>
        <Name>Beetle</Name>
        <Make>Volkswagen</Make>
        <Year>1963</Year>
    </Car>
    <Car>
        <Name>Miller-Meteor</Name>
        <Make>Cadillac</Make>
        <Year>1959</Year>
    </Car>
</CarRecords>